import requests
import os,json
from goods_feedback.config.setting import *
from goods_feedback.public.get_yaml import doYaml
from goods_feedback.public.header import *
from goods_feedback.public.getlogging import Logger
from goods_feedback.handle.quesave_data import *


#filename=os.path.basename(__file__)  #获取对应路径下的文件名称
#logging=Logger(filename).getlog()

rs=doYaml.get_data(os.path.join(data_path,'questions_list.yaml'))
base_url='{0}{1}'.format(url,rs['path'])
method=rs['method']
payload={'pageNum':1,'pageNum':10,'parentorderno':parentorderno}
headers=form_headers

def question_list():
    re=requests.request(method,base_url,headers=headers,params=payload).json()
    return re
    #logging.info(re['rows'][0])

#question_list()

